{% extends "base.html" %}

{% block content %}
<div id="content-header">
	<h2>创建新帐户</h2>
	<div class="clear"></div>
</div>
<form method="post" action=".">
	{% if form.errors %}
	<p class="errornote">请修正下面的错误后继续</p>
	<ul class="errorlist">
		{% for error in  form.non_field_errors %}
		<li>{{ error }}</li>
		{% endfor %}
	</ul>
	{% endif %}
	<div class="form-row{% if form.name.errors %} error{%endif%}">
		<div>
			<label for="id_name">账户名称
			{% if form.name.errors %}
			<strong class="error">{{ form.name.errors.0 }}</strong>
			{% endif %}
			</label>
			<input type="text" id="id_name" name="name" />
			<p class="help">例如：安慧里租房</p>
		</div>
	</div>
	<div class="form-buttons">
		<button type="submit">创建账户</button>
		<a href="/sa/">取消</a>
	</div>
</form>
{% endblock %}
{% block embedded_javascript %}
	document.getElementById("id_name").focus();
{% endblock %}
